package com.lyc.day1031.demo2;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/10/31 17:17
 * @description：
 * @modified By：
 * @version:
 */
public class TestTicket {
    public static void main(String[] args) {
        MyTicket myTicket = new MyTicket();

        Thread t1 = new Thread(myTicket, "窗口A");
        Thread t2 = new Thread(myTicket, "窗口B");
        Thread t3 = new Thread(myTicket, "窗口C");
        Thread t4 = new Thread(myTicket, "窗口D");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
    }
}